package com.fund.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum IncomeSource implements BaseEnum {
    BUSINESS_INCOME(1, "企业经营"),
    SELF_EMPLOYMENT(2, "个体经营"),
    SALARY(3, "工资"),
    PENSION(4, "退休金"),
    LUMP_SUM(5, "一次性收入");

    @EnumValue
    @JsonValue
    private final Integer value;
    private final String desc;

    IncomeSource(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }
}
